import axios from "axios";

export const getRoleList=(params)=>{
    return axios.request({
        url:'/acl/role/page',
        method:'get',
        params
    })
}

export const getRoleSave=(params)=>{
    return axios.request({
        url:'/acl/role/saveRole',
        method:'post',
        data:params
    })
}

export const getRoleUpdate=(params)=>{
    return axios.request({
        url:'/acl/role/updateRole',
        method:'put',
        data:params
    })
}
export const delRole=(params)=>{
    return axios.request({
        url:'/acl/role/delRole',
        method:'delete',
        params
    })
}

export const getRoleListName=()=>{
    return axios.request({
        url:'/acl/role/roleList',
        method:'get',
    })
}

export const RoleAndPer=(params)=>{
    return axios.request({
        url:'/acl/role/roleAndPer',
        method:'put',
        data:params
    })

}
